package com.masterrabbit.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.masterrabbit.common.core.annotation.Excel;
import com.masterrabbit.common.core.web.domain.BaseEntity;

/**
 * 服务项目对象 services
 * 
 * @author laotu
 * @date 2025-03-19
 */
public class Services extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID（自增） */
    private Long serviceId;

    /** 服务分类 */
    @Excel(name = "服务分类")
    private Long serviceCategory;

    /** 服务编号 */
    @Excel(name = "服务编号")
    private String serviceCode;

    /** 服务项目 */
    @Excel(name = "服务项目")
    private String serviceName;

    /** userID（商家） */
    @Excel(name = "userID", readConverterExp = "商=家")
    private Long merchantId;

    /** 商家姓名 */
    @Excel(name = "商家姓名")
    private String merchantName;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 服务介绍 */
    @Excel(name = "服务介绍")
    private String description;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setServiceId(Long serviceId) 
    {
        this.serviceId = serviceId;
    }

    public Long getServiceId() 
    {
        return serviceId;
    }

    public void setServiceCategory(Long serviceCategory) 
    {
        this.serviceCategory = serviceCategory;
    }

    public Long getServiceCategory() 
    {
        return serviceCategory;
    }

    public void setServiceCode(String serviceCode) 
    {
        this.serviceCode = serviceCode;
    }

    public String getServiceCode() 
    {
        return serviceCode;
    }

    public void setServiceName(String serviceName) 
    {
        this.serviceName = serviceName;
    }

    public String getServiceName() 
    {
        return serviceName;
    }

    public void setMerchantId(Long merchantId) 
    {
        this.merchantId = merchantId;
    }

    public Long getMerchantId() 
    {
        return merchantId;
    }

    public void setMerchantName(String merchantName) 
    {
        this.merchantName = merchantName;
    }

    public String getMerchantName() 
    {
        return merchantName;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("serviceId", getServiceId())
            .append("serviceCategory", getServiceCategory())
            .append("serviceCode", getServiceCode())
            .append("serviceName", getServiceName())
            .append("merchantId", getMerchantId())
            .append("merchantName", getMerchantName())
            .append("price", getPrice())
            .append("description", getDescription())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
